//
//  MyTabBarController.m
//  MagicCardDemo
//
//  Created by 向恒 on 15/7/16.
//  Copyright (c) 2015年 向恒. All rights reserved.
//

#import "MyTabBarController.h"
#import "CardData.h"
#import "CardQueue.h"
#import "CardSerialize.h"
@interface MyTabBarController ()

@end

@implementation MyTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    //self.view.backgroundColor = [UIColor whiteColor];
    //解决push进下一个页面时右上角的黑团问题
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


//barbar item 的点击事件，事件里根据点击的标题来做流程处理
-(void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
    if([item.title isEqualToString:@"练习"])
    {
        NSLog(@"test123");
    }
    else if([item.title isEqualToString:@"记录"])
    {
        NSLog(@"test456");
    }
    else if([item.title isEqualToString:@"功能"])
    {
        NSLog(@"test789");
    }
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
